/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.metasketch.model.loader;

/**
 * 
 * @author guilhermegrg
 */
public enum CustomRelationship {
	CausalLink("CausalLink"), CoordinationLink("CoordinationLink"), CONTAINS(
			"CONTAINS");

	private final String name;

	CustomRelationship(String name) {
		this.name = name;
	}

	String getName() {
		return name;
	}

	static boolean isRelationship(String type) {
		for (CustomRelationship p : CustomRelationship.values()) {
			if (p.getName().equalsIgnoreCase(type)) {
				return true;
			}
		}
		return false;
	}
}
